package com.rd.student.jiaji.class3.sunguowei;

import java.util.LinkedList;

public class LinkListTest {
    public static void main(String[] args) {
        LinkedList list=new LinkedList();
        People name=new People("sunke","computer","three");
        People name1=new People("zhangshixuan","computer","three");
        People name2=new People("caiyuxin","computer","three");
        People name3=new People("xumingze","computer","three");
        People name4=new People("sunguowei","computer","three");
        People name5=new People("wangyanbo","computer","three");
        People name6=new People("qinjialin","computer","three");
        list.add(name);
        list.add(name1);
        list.add(name2);
        list.add(name3);
        list.add(name4);
        list.add(name5);
        list.add(name6);
        System.out.println(list);
    }
}
class People{
    String name;
    String major;
    String banji;
    public People(String name,String major,String banji){
        this.name=name;
        this.major=major;
        this.banji=banji;
    }

    @Override
    public String toString() {
        return "People{" + "name='" + name + '\'' +
                ", major='" + major + '\'' +
                ", banji='" + banji + '\'' +
                '}';
    }
}
